<?php

use app\request\Request;
use app\server\web\Route;
use app\server\web\controller\File;

/**
 * web入口文件 请求对应
 */
$active = Route::getRoute(Request::instance()->getRequestUri());

if ($active !== false) {
    call_user_func([File::class, $active]);
    return;
}

echo '404';
